home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / C⁄C++ OS8 / Everything / DModelessTextData.h < prev    next >
Encoding:
Text File  |  1998-09-06  |  1.5 KB  |  68 lines  |  [TEXT/CWIE]

  1. // DModelessTextData -- data class for Everything
  2.  
  3. #pragma once
  4.  
  5. #include "AMSignaler.h"
  6.  
  7.  
  8. const long    idSmall3        = 'Sma3';
  9. const long    idLarge3        = 'Lar3';
  10. const long    idX12347        = 'X147';
  11. const long    idX12345e8        = 'X128';
  12. const long    idPassword3        = 'Pas3';
  13. const long    idDate3        = 'Dat3';
  14. const long    idTime3        = 'Tim3';
  15. const long    idStyled3        = 'Sty3';
  16.  
  17. class AMEngine;
  18.  
  19. //----------
  20. class DModelessTextData : public AMSignaler {
  21. public:
  22.                 DModelessTextData ();
  23.     virtual        ~DModelessTextData ();
  24.  
  25. public:
  26.     void        ReadFromFile    (AMEngine*        engine);
  27.     void        WriteToFile        (AMEngine*        engine);
  28.  
  29. public:
  30.     StringPtr    GetSmall3    (Str255        outStr = nil) const;
  31.     void        SetSmall3    (Str255        inValue);
  32.     void        SetSmall3    (CharsHandle    inValue);
  33.  
  34.     StringPtr    GetLarge3    (Str255        outStr = nil) const;
  35.     void        SetLarge3    (Str255        inValue);
  36.     void        SetLarge3    (CharsHandle    inValue);
  37.  
  38.     SInt32        GetX12347 () const;
  39.     void        SetX12347    (SInt32        inValue);
  40.  
  41.     double        GetX12345e8 () const;
  42.     void        SetX12345e8    (double        inValue);
  43.  
  44.     StringPtr    GetPassword3    (Str255        outStr = nil) const;
  45.     void        SetPassword3    (Str255        inValue);
  46.     void        SetPassword3    (CharsHandle    inValue);
  47.  
  48.     LongDateRec        GetDate3 () const;
  49.     void        SetDate3    (LongDateRec        inValue);
  50.  
  51.     LongDateRec        GetTime3 () const;
  52.     void        SetTime3    (LongDateRec        inValue);
  53.  
  54.     StringPtr    GetStyled3    (Str255        outStr = nil) const;
  55.     void        SetStyled3    (Str255        inValue);
  56.     void        SetStyled3    (CharsHandle    inValue);
  57.  
  58. protected:
  59.     Str255        mSmall3;
  60.     Str255        mLarge3;
  61.     SInt32        mX12347;
  62.     double        mX12345e8;
  63.     Str255        mPassword3;
  64.     LongDateRec        mDate3;
  65.     LongDateRec        mTime3;
  66.     Str255        mStyled3;
  67. };
  68.